package com.gs.xbinfomytest.entity.dsl;

import com.gitee.hengboy.mybatis.enhance.dsl.expression.ColumnExpression;
import com.gitee.hengboy.mybatis.enhance.dsl.expression.TableExpression;
import com.gs.xbinfomytest.entity.SysOperLog;

/**
 * 操作日志记录
 * @author ApiBoot Mybatis Enhance Codegen
 */
public class DSysOperLog extends TableExpression<SysOperLog> {

    public DSysOperLog(String root) {
        super(root);
    }

    public static DSysOperLog DSL() {
        return new DSysOperLog("sys_oper_log");
    }

    /**
     * 日志主键
     */
    public ColumnExpression operId = new ColumnExpression("oper_id", this);
    /**
     * 模块标题
     */
    public ColumnExpression title = new ColumnExpression("title", this);
    /**
     * 业务类型（0其它 1新增 2修改 3删除）
     */
    public ColumnExpression businessType = new ColumnExpression("business_type", this);
    /**
     * 方法名称
     */
    public ColumnExpression method = new ColumnExpression("method", this);
    /**
     * 操作类别（0其它 1后台用户 2手机端用户）
     */
    public ColumnExpression operatorType = new ColumnExpression("operator_type", this);
    /**
     * 操作人员
     */
    public ColumnExpression operName = new ColumnExpression("oper_name", this);
    /**
     * 部门名称
     */
    public ColumnExpression deptName = new ColumnExpression("dept_name", this);
    /**
     * 请求URL
     */
    public ColumnExpression operUrl = new ColumnExpression("oper_url", this);
    /**
     * 主机地址
     */
    public ColumnExpression operIp = new ColumnExpression("oper_ip", this);
    /**
     * 操作地点
     */
    public ColumnExpression operLocation = new ColumnExpression("oper_location", this);
    /**
     * 请求参数
     */
    public ColumnExpression operParam = new ColumnExpression("oper_param", this);
    /**
     * 操作状态（0正常 1异常）
     */
    public ColumnExpression status = new ColumnExpression("status", this);
    /**
     * 错误消息
     */
    public ColumnExpression errorMsg = new ColumnExpression("error_msg", this);
    /**
     * 操作时间
     */
    public ColumnExpression operTime = new ColumnExpression("oper_time", this);
    @Override
    public ColumnExpression[] getColumns() {
        return new ColumnExpression[]{operId, title, businessType, method, operatorType, operName, deptName, operUrl, operIp, operLocation, operParam, status, errorMsg, operTime};
    }

}

